﻿using System;

namespace OperationPlugins.Proxies.CodeDom
{
    [AttributeUsage(AttributeTargets.Method, AllowMultiple = false, Inherited = true)]
    public sealed class ProxyMethodAttribute : Attribute
    {
        private readonly string _id;

        public ProxyMethodAttribute(string id)
        {
            if (id == null)
            {
                throw new ArgumentNullException("id");
            }

            _id = id;
        }

        public string Id { get { return _id; } }
    }
}
